﻿



/// <summary>
/// 怪兽任务注册机
/// 使用示范：
/// MonsterTaskKeygen.RegisterTask(new MonsterTaskHorizontalMove(monster, Vector3.left * 10));
/// MonsterTaskKeygen.RegisterTask(new MonsterTaskVerticalMove(monster, Vector3.up * 10));
/// </summary>
public static class MonsterTaskKeygen 
{
    //注册任务，该任务优先级别默认为最高(即最优先被执行)
    public static void RegisterTask(IMonsterTask task)
    {
        MonsterTaskProcessor.Instance.AddTaskFront(task);
    }
}
